package com.fumin.service;

import com.google.code.kaptcha.Producer;

import java.util.List;
import java.util.Map;

/**
 * Created by Lingo on 2018/2/13.
 */
public interface EhcacheService {

    String getIdentifyingCode(String phoneNum,Producer kaptchaProducer);

    String getIdentifyingCode(String phoneNum);

    void removeIdentifyingCode(String phoneNum);

    boolean checkPhone(String phoneNum);

    Long checkLong();

    Integer query(Long userId);

    List<Map<String,Object>> selectTop();

    String selectTotal();

    Map<String,Object> selectLast();

    void updateLoginFailedData(String ip);

    Integer selectFailedData(String ip);

}
